package com.thinkgem.jeesite.modules.fee.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.fee.dao.FeeDao;
import com.thinkgem.jeesite.modules.fee.entity.Fee;

@Service
@Transactional(readOnly = true)
public class FeeService extends CrudService<FeeDao, Fee>{
	@Autowired
	private FeeDao feedao;
	@Transactional(readOnly = false)
	public void updateFee(Fee fee){
		feedao.updateFee(fee);
	}
	@Transactional(readOnly = false)
	public int insert(Fee fee){
		return feedao.insert(fee);
	}
	@Transactional(readOnly = false)
	public void deleteUnfeeByUserId(String id){
		feedao.deleteUnfeeByUserId(id);
	}
	@Transactional(readOnly = false)
	public void deleteFeeByBuildingId(String id){
		feedao.deleteFeeByBuildingId(id);
	}
	@Transactional(readOnly = false)
	public Fee findFeeByRoomIds(String id){
		return feedao.findFeeByRoomIds(id);
	}
	@Transactional(readOnly = false)
	public void undateRoomIds(Fee fee){
		feedao.undateRoomIds(fee);
	}

}
